-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a Smart 404 Feature #801
Conversation
… use that to display a warning if ElasticPress isn't enabled
Note there are a couple other things we could consider doing here, either in this PR or in follow up PRs:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the Great work here @dkotter. The code looks great and it tests well. Just added one minor suggestion otherwise this is ready for merge.
Note there are a couple other things we could consider doing here, either in this PR or in follow up PRs:
I think better to handle it in separate follow up PRs.
Co-authored-by: Dharmesh Patel <[email protected]>
Description of the Change
Adding in a new Feature, Smart 404, that uses the power of embeddings, combined with vector search capabilities in Elasticsearch, to recommend content when users land on a 404 page, with the hope of recommending the actual item they were hoping to reach.
As mentioned, this Feature requires two services in order to function:
Once both are in place, all of your existing content (and any new content added in the future) is automatically sent off to the embeddings Provider. This vector information is then stored in elasticsearch and we can then run vector queries on this data. In particular, we've introduced new helper methods that can be dropped into a site's 404 template that will render these results.
At a high level, here's how the process works:
example.com/news/interesting-news-article
, we take the sluginteresting-news-article
Closes #794
How to test the Change
Note it's helpful to install Query Monitor and the ElasticPress Debugging Add-On to see the actual elasticsearch queries and results
Changelog Entry
Credits
Props @dkotter, @iamdharmesh, @berkod
Checklist: